﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThuVien.DataAccess;
using System.Windows.Forms;

namespace QuanLyThuVien.Business
{
    class UserBus
    {
        UserDAL UserDAL = new UserDAL();
        User USER = new User();

        public bool KiemTraUser(string user, string pass)
        {
            USER.USER = user;
            USER.Pass = pass;
           return UserDAL.KiemTraUser(USER);
        }

        public void DangKiUser(User user)
        {

            UserDAL.DangKiUser(user);
        }
    }
}
